//
//  main.m
//  多肽
//
//  Created by 郭志远 on 2023/12/6.
//

#import <Foundation/Foundation.h>
#import "Dog.h"
#import "Cat.h"
#import "Animal.h"
#import "Person.h"

int main(int argc, const char * argv[]) {
//    Animal *d = [Dog new];
//    [d eat];
//    Cat *c = [Cat new];
//    [c eat];
//    
//    Animal *d = [Dog new];
//    [d eat];
//    Dog *a = (Dog *)d;
//    [a kanjia];
//    Animal *c = [Cat new];
//    [c eat];
    
    [Person food:[Dog new]];
    [Person food:[Cat new]];
    return 0;
}
